#pragma once
class MsgNode
{
public:
	MsgNode(unsigned short max_len);
	virtual ~MsgNode();

	void Clear();

public:
	char* m_data;
	int m_cur_len;
	int m_total_len;
};

class SendNode : public MsgNode
{
	friend class LogicSystem;

public:
	SendNode(const char* msg, unsigned short max_len, unsigned short msg_id);

private:
	unsigned short m_msg_id;
};

class RecvNode : public MsgNode
{
	friend class LogicSystem;

public:
	RecvNode(unsigned short max_len, unsigned short msg_id);

private:
	unsigned short m_msg_id;
};

